
. $LKP_SRC/lib/job.sh

load_my_config() {
    local config_path="${HOME}/.config/compass-ci"
    local lab="${CCI_LAB:-default}"

    # Load variables from default YAML files
    for file in /etc/compass-ci/defaults/*.yaml "${config_path}/defaults"/*.yaml; do
        if [ -f "$file" ]; then
            read_yaml_vars "$file"
        fi
    done

    # Load variables from lab-specific YAML files
    for file in /etc/compass-ci/include/lab/"${lab}".yaml "${config_path}/include/lab/${lab}".yaml; do
        if [ -f "$file" ]; then
            read_yaml_vars "$file"
        fi
    done
}
